<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<script>
			var price=prompt("请输入一个价格");
			alert("优惠后的价格："+price*0.8);
		</script>
	</body>
</html>
